package com.sali.entity;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.util.unit.DataSize;

@Data
@Component
@ConfigurationProperties(prefix = "sali.multipart")
public class MultipartFileProperties {

    // # 是单个文件大小 默认1M 10KB
    private DataSize maxFileSize;

    // 是设置总上传的数据大小
    private DataSize maxRequestSize;

    // 当文件达到多少时进行磁盘写入
    private DataSize fileSizeThreshold;

    // 设置临时目录
    private String location;

}
